package com.team.book.common.exception;

import com.team.book.common.constant.ResponseStatus;

/**
 * @author iw
 * @create 2017-05-09 16:11
 **/
public class UncheckedException extends Exception{
    private ResponseStatus status;

    public UncheckedException(String message) {
        super(message);
    }

    public UncheckedException(ResponseStatus status) {
        this.status = status;
    }

    public UncheckedException(String message, Throwable cause) {
        super(message, cause);
    }


    public ResponseStatus getStatus() {
        return status;
    }

    public void setStatus(ResponseStatus status) {
        this.status = status;
    }
}
